package com.dmzc.stage2.chapter27;

import com.dmzc.stage2.chapter19.Future;

public interface OrderService {
    /**
     * 根据订单编号查询订单明细，有入参也有返回值，返回类型必须是Future
     * @param orderId
     * @return
     */
    Future<String>findOrderDetails(long orderId);

    /**
     * 提交订单
     * @param account
     * @param orderId
     */
    void order(String account,long orderId);
}
